package main
import "fmt"

//全局变量
var(
	n6 = 300
	name2 = "jack"
)

//211215划水学go
func main(){
	//1 多变量声明
	var n1,n2,n3 int
	fmt.Println(n1,n2,n3)

	//2 类型不一样
	var n4,name,n5 = 1,"tom", 100
	fmt.Println(n4,name,n5)

	//3.类型推导，省略var

	//4.全局变量
	
}